package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * 支付宝回调
 *
 * @author zhr
 */
@Api(tags = "hr-支付宝回调")
public interface IAliPayControllerAPI {

    /**
     * 获取会员信息  支付宝回调
     * @param state 自定义参数
     * @return 自定义参数
     */
    @ApiOperation(value = "新增方案适用设置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "state", dataType = "String", value = "自定义参数", paramType = "quer")
    })
    Result<String> backUserInfo(String state);

    /**
     * 支付宝订单支付完成异步通知接口
     * @param request 请求
     * @return success or fail
     */
    @ApiOperation(value="支付宝订单支付完成异步通知接口")
    String offerAliPay(HttpServletRequest request);

    /**
     * 支付宝订单支付完成异步通知接口
     * @param request 请求
     * @return success or fail
     */
    @ApiOperation(value="支付宝安全发订单支付完成异步通知接口")
    String offerAliSafetyPay(HttpServletRequest request);


}

